import http from "wx-https"
Page({
  data: {
    list: []
  },
  async onLoad() {
    // utils.toast()
    // wx.$utilss.toast()
    const {
      code,
      data
    } = await wx.$http.get('/announcement')
    // console.log(code, data)
    if (code !== 10000) return wx.$utils.toast()
    this.setData({
      list: data
    })
  }
})